package entity;


public class Print {
    private Ink ink; //颜色
    private Paper paper; //纸张

    public Print(Ink ink, Paper paper) {
        this.ink = ink;
        this.paper = paper;
    }

    public Ink getInk() {
        return ink;
    }

    public void setInk(Ink ink) {
        this.ink = ink;
    }

    public Paper getPaper() {
        return paper;
    }

    public void setPaper(Paper paper) {
        this.paper = paper;
    }

    public void print(){
        System.out.println("您正在使用："+ink.getType()+"墨盒和："+paper.getSize()+"纸张打印内容");
    }

}
